.class public Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;
.super Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.source "ImportFieldsListItemHolder.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder$OnItemClickedListener;
    }
.end annotation


# instance fields
.field private bintObject:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldModel;

.field checkBox:Landroid/widget/CheckBox;

.field private googleMap:Lcom/google/android/gms/maps/GoogleMap;

.field name:Landroid/widget/TextView;

.field private onItemClickedListener:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder$OnItemClickedListener;

.field private polygonOptions:Lcom/google/android/gms/maps/model/PolygonOptions;

.field sizeCulture:Landroid/widget/TextView;

.field unique:Landroid/widget/TextView;


# direct methods
.method public constructor <init>(Landroid/view/View;)V
    .locals 1

    .line 53
    invoke-direct {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;-><init>(Landroid/view/View;)V

    .line 54
    invoke-direct {p0, p1}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->setMap(Landroid/view/View;)V

    const v0, 0x7f09018c

    .line 56
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->name:Landroid/widget/TextView;

    const v0, 0x7f09020b

    .line 57
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->sizeCulture:Landroid/widget/TextView;

    const v0, 0x7f090279

    .line 58
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->unique:Landroid/widget/TextView;

    const v0, 0x7f090096

    .line 59
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/CheckBox;

    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->checkBox:Landroid/widget/CheckBox;

    return-void
.end method

.method static synthetic access$000(Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;)Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder$OnItemClickedListener;
    .locals 0

    .line 24
    iget-object p0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->onItemClickedListener:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder$OnItemClickedListener;

    return-object p0
.end method

.method static synthetic access$100(Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;)Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldModel;
    .locals 0

    .line 24
    iget-object p0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->bintObject:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldModel;

    return-object p0
.end method

.method static synthetic access$200(Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;)Lcom/google/android/gms/maps/GoogleMap;
    .locals 0

    .line 24
    iget-object p0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->googleMap:Lcom/google/android/gms/maps/GoogleMap;

    return-object p0
.end method

.method static synthetic access$202(Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;Lcom/google/android/gms/maps/GoogleMap;)Lcom/google/android/gms/maps/GoogleMap;
    .locals 0

    .line 24
    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->googleMap:Lcom/google/android/gms/maps/GoogleMap;

    return-object p1
.end method

.method static synthetic access$300(Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;Lcom/google/android/gms/maps/GoogleMap;)V
    .locals 0

    .line 24
    invoke-direct {p0, p1}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->addPolygon(Lcom/google/android/gms/maps/GoogleMap;)V

    return-void
.end method

.method private addPolygon(Lcom/google/android/gms/maps/GoogleMap;)V
    .locals 2

    .line 117
    invoke-virtual {p1}, Lcom/google/android/gms/maps/GoogleMap;->clear()V

    .line 118
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->polygonOptions:Lcom/google/android/gms/maps/model/PolygonOptions;

    invoke-virtual {p1, v0}, Lcom/google/android/gms/maps/GoogleMap;->addPolygon(Lcom/google/android/gms/maps/model/PolygonOptions;)Lcom/google/android/gms/maps/model/Polygon;

    move-result-object v0

    const v1, 0x3f00ff00

    .line 119
    invoke-virtual {v0, v1}, Lcom/google/android/gms/maps/model/Polygon;->setFillColor(I)V

    .line 120
    invoke-virtual {v0}, Lcom/google/android/gms/maps/model/Polygon;->getPoints()Ljava/util/List;

    move-result-object v0

    const/4 v1, 0x1

    invoke-static {p1, v0, v1}, Llt/noframe/gpsfarmguide/utils/Camera;->showMeasure(Lcom/google/android/gms/maps/GoogleMap;Ljava/util/List;I)V

    return-void
.end method

.method private setMap(Landroid/view/View;)V
    .locals 2

    const v0, 0x7f09016b

    .line 91
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/google/android/gms/maps/MapView;

    const/4 v1, 0x0

    .line 92
    invoke-virtual {v0, v1}, Lcom/google/android/gms/maps/MapView;->onCreate(Landroid/os/Bundle;)V

    .line 93
    new-instance v1, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder$2;

    invoke-direct {v1, p0, p1}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder$2;-><init>(Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;Landroid/view/View;)V

    invoke-virtual {v0, v1}, Lcom/google/android/gms/maps/MapView;->getMapAsync(Lcom/google/android/gms/maps/OnMapReadyCallback;)V

    .line 106
    invoke-virtual {v0}, Lcom/google/android/gms/maps/MapView;->onResume()V

    return-void
.end method


# virtual methods
.method public bindObject(Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldModel;Lcom/google/android/gms/maps/model/PolygonOptions;Ljava/lang/String;Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder$OnItemClickedListener;Z)V
    .locals 0

    .line 64
    iput-object p4, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->onItemClickedListener:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder$OnItemClickedListener;

    .line 65
    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->bintObject:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldModel;

    .line 66
    iput-object p2, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->polygonOptions:Lcom/google/android/gms/maps/model/PolygonOptions;

    .line 68
    iget-object p2, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->googleMap:Lcom/google/android/gms/maps/GoogleMap;

    if-eqz p2, :cond_0

    .line 69
    invoke-direct {p0, p2}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->addPolygon(Lcom/google/android/gms/maps/GoogleMap;)V

    .line 72
    :cond_0
    iget-object p2, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->name:Landroid/widget/TextView;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldModel;->getShapeModel()Llt/farmis/libraries/shape_import_android/models/ShapeModel;

    move-result-object p1

    invoke-virtual {p1}, Llt/farmis/libraries/shape_import_android/models/ShapeModel;->getName()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 73
    iget-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->sizeCulture:Landroid/widget/TextView;

    invoke-virtual {p1, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 74
    iget-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->unique:Landroid/widget/TextView;

    const-string p2, ""

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 76
    iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    new-instance p2, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder$1;

    invoke-direct {p2, p0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder$1;-><init>(Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;)V

    invoke-virtual {p1, p2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 85
    iget-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->checkBox:Landroid/widget/CheckBox;

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Landroid/widget/CheckBox;->setVisibility(I)V

    .line 86
    iget-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->checkBox:Landroid/widget/CheckBox;

    invoke-virtual {p1, p5}, Landroid/widget/CheckBox;->setChecked(Z)V

    return-void
.end method

.method public setChecked(Ljava/lang/Boolean;)V
    .locals 1

    .line 27
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsListItemHolder;->checkBox:Landroid/widget/CheckBox;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    invoke-virtual {v0, p1}, Landroid/widget/CheckBox;->setChecked(Z)V

    return-void
.end method
